package com.qidian.by.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小可怎么都睡不够
 * @since 2024-05-06
 */
@TableName("buy_content")
public class Content implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 内容编号
     */
    @TableId(value = "content_id", type = IdType.AUTO)
    private Long contentId;

    /**
     * 内容类别编号
     */
    private Long catId;

    @TableField(exist = false)
    private ContentCategory contentCategory;
    @TableField(exist = false)
    private String catMark;
    /**
     * 文本1
     */
    private String text1;

    /**
     * 文本2
     */
    private String text2;

    /**
     * 文本3
     */
    private String text3;

    /**
     * 超链接
     */
    private String url;

    /**
     * 图片1
     */
    private String img1;

    /**
     * 图片2
     */
    private String img2;

    /**
     * 内容创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 内容最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    /**
     * 内容状态 1 正常 2 禁用
     */
    private Integer status;

    public Long getContentId() {
        return contentId;
    }

    public void setContentId(Long contentId) {
        this.contentId = contentId;
    }

    public Long getCatId() {
        return catId;
    }

    public void setCatId(Long catId) {
        this.catId = catId;
    }

    public String getText1() {
        return text1;
    }

    public void setText1(String text1) {
        this.text1 = text1;
    }

    public String getText2() {
        return text2;
    }

    public void setText2(String text2) {
        this.text2 = text2;
    }

    public String getText3() {
        return text3;
    }

    public void setText3(String text3) {
        this.text3 = text3;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImg1() {
        return img1;
    }

    public void setImg1(String img1) {
        this.img1 = img1;
    }

    public String getImg2() {
        return img2;
    }

    public void setImg2(String img2) {
        this.img2 = img2;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public ContentCategory getContentCategory() {
        return contentCategory;
    }

    public void setContentCategory(ContentCategory contentCategory) {
        this.contentCategory = contentCategory;
    }

    public String getCatMark() {
        return catMark;
    }

    public void setCatMark(String catMark) {
        this.catMark = catMark;
    }

    @Override
    public String toString() {
        return "Content{" +
            "contentId = " + contentId +
            ", catId = " + catId +
            ", text1 = " + text1 +
            ", text2 = " + text2 +
            ", text3 = " + text3 +
            ", url = " + url +
            ", img1 = " + img1 +
            ", img2 = " + img2 +
            ", createTime = " + createTime +
            ", modifyTime = " + modifyTime +
            ", status = " + status +
        "}";
    }
}
